package Strategy_Pattern.Airplane;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Fly {
    private Plane plane;

    public void setPlane(Plane plane) {
        this.plane = plane;
    }
    public void takeoff(){
        this.plane.takeoff();
    }
    public void fly(){
        this.plane.sonicfly();
    }
    public void start(){
        this.takeoff();
        this.fly();
    }
}
